#include "LightDirectional.h"




LightDirectional::LightDirectional(glm::vec3 _position, glm::vec3 _angles, glm::vec3 _direction, glm::vec3 _color):
	position(_position),
	angles(_angles),
	direction(_direction),
	color(_color),
	ambient(1.0),
	diffuse(1.0),
	specular(1.0)
{
	updateDirection();
}

LightDirectional::~LightDirectional()
{
}

void LightDirectional::updateDirection()
{
	direction = glm::rotateZ(direction, angles.z);
	direction = glm::rotateX(direction, angles.x);
	direction = glm::rotateY(direction, angles.y);

	//direction = -1.0f * direction;
}
